package com.lry.httpclient;

import com.lry.bean.dingding.DingDingNotice;
import com.lry.bean.dingding.DingDingResult;
import feign.*;

import java.util.Map;

public interface DingDingClientFeign {

	@RequestLine("POST /send?access_token={accessToken}")
	@Headers("Content-Type: application/json; charset=utf-8")
	@Body("{body}")
	DingDingResult post(@Param("accessToken") String accessToken,
						@Param(value = "body", expander = JsonExpander.class) DingDingNotice body,
						@QueryMap Map<String, Object> map);
}
